package org.iteam.core.service.oracle.impl.base;

import java.sql.SQLException;
import java.util.List;

import org.iteam.core.model.base.BaseParameter;
import org.iteam.core.service.DBService;
import org.iteam.core.service.base.BaseParameterService;

public class BaseParameterServiceImpl extends BaseParameterService {
	@Override
	public List<BaseParameter> queryByPage(long page, long rows)
			throws SQLException {
		String SQL = "SELECT * FROM BASE_PARAMETER ORDER BY NAME";

		return super.query(DBService.toOraclePage(SQL), page * rows, rows
				* (page - 1));
	}

}
